package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;
import com.huawang.business.dto.ProjectIdDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;


@Data
public class ProjectOpenDTO extends ProjectIdDTO {
    @Schema(title = "项目文件绝对路径")
    @NotBlank(message = ParamErrorConstants.NO_FILEPATH)
    private String filePath;

    @Schema(title = "profile文件夹目录")
    private String profileLibPath;

    @Schema(title = "协同profile文件夹目录")
    private String onlineProfileLibPath;

    @NotBlank(message = ParamErrorConstants.NO_SAVE_WAY)
    @Schema(title = "保存方式")
    private String saveWay = "md3";

    @Schema(title = "是否重连 true：是, false:否")
    private Boolean isReconnect = false;

    @NotBlank(message = ParamErrorConstants.NO_DEFAULT_SAVE_DIR)
    @Schema(title = "项目数据保存目录")
    private String defaultSaveDir;

    @Schema(title = "项目数据文件目录")
    private String dbDir;

    @Schema(title = "项目数据连接id")
    private String dataSourceId;

}
